package com.zdkj.subway.support.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zdkj.subway.support.dto.out.OperateLogDetailDTO;
import com.zdkj.subway.support.entity.SwStOperateLog;
import com.zdkj.subway.support.mapper.SwStOperateLogMapper;
import com.zdkj.subway.support.service.SwStOperateLogService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 票务日志表
 *
 * @author cui_com
 * @date 2020-01-08 17:21:51
 */
@Service
@AllArgsConstructor
public class SwStOperateLogServiceImpl extends ServiceImpl<SwStOperateLogMapper, SwStOperateLog> implements SwStOperateLogService {

    private SwStOperateLogMapper swStOperateLogMapper;

    /**
     * 查找详细信息
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    @Override
    public IPage<OperateLogDetailDTO> queryDetailByPage(IPage page, Wrapper queryWrapper) {
        return swStOperateLogMapper.queryDetailByPage(page, queryWrapper);
    }

    @Override
    public Integer recordLogByLogSet(LocalDateTime endDateTime) {
        return swStOperateLogMapper.recordLogByLogSet(endDateTime);
    }

    @Override
    public Integer recordLogByIds(List<Integer> listIds) {
        return swStOperateLogMapper.recordLogByIds(listIds);
    }


}
